#@adminLayout()
#define main()
<div class="jbolt_page" data-key="#(pmkey)">
<div class="jbolt_page_title">
	<h1>基础数据管理</h1>
</div>
<div class="jbolt_page_content" style="height: calc(100vh - 140px)">
<div class="row">
<div class="col-12 col-xl-5 col-lg-6 col-md-6">
<div class="card mb-3">
  <div class="card-header">
    数据分类
    <a href="admin/dictionarytype/add" tooltip class="pull-right" data-handler="refreshPortal" data-portal="dictionaryTypePortal" data-dialogbtn data-area="500,400" data-title="添加新数据分类"><i class="fa fa-plus text-primary"></i></a>
  </div>
   <div class="card-body overflow-auto jbolt_table_fill_box" style="height: calc(100vh - 200px);">
    #ajaxPortal("/admin/dictionarytype/mgr","dictionaryTypePortal",true)
    </div>
</div>
</div>
<div  class="col-12 col-xl-7 col-lg-6 col-md-6">
<div class="card" >
  <div class="card-header">基础数据项 : <span id="selectDicTypeName" class="text-danger">未选</span></div>
<div class="card-body overflow-auto jbolt_table_fill_box" style="height: calc(100vh - 200px);">

 #ajaxPortal("/admin/dictionary/mgr","dictionaryPortal",true)
 </div>
 </div>
</div>
</div>
</div>
</div>
#end

#define js()
<script>
	function readDictionarys(type,typeId,title){
		$(".dictionaryTypes tr.active").removeClass("active");
		$(type).addClass("active");
		  $("#selectDicTypeName").text(title);
		  $("#dictionaryPortal").ajaxPortal(true,"/admin/dictionary/mgr/"+typeId,true);
	}

	function refreshAllPortal(){
		LayerMsgBox.load(3,300);
		$("#dictionaryTypePortal").ajaxPortal(true);
		$("#dictionaryPortal").ajaxPortal(true);
		}
$(function(){
})
</script>
#end
